A 2-Categorical Presentation of Term Graph Rewriting
نویسندگان
چکیده
It is well-known that a term rewriting system can be faithfully described by a cartesian 2-category, where horizontal arrows represent terms, and cells represent rewriting sequences. In this paper we propose a similar, original 2-categorical presentation for term graph rewriting. Building on a result presented in 8], which shows that term graphs over a given signature are in one-to-one correspondence with arrows of a gs-monoidal category freely generated from the signature, we associate with a term graph rewriting system a gs-monoidal 2-category, and show that cells faithfully represent its rewriting sequences. We exploit the categorical framework to relate term graph rewriting and term rewriting, since gs-monoidal (2-)categories can be regarded as \weak" cartesian (2-)categories, where certain (2-)naturality axioms have been dropped.
منابع مشابه
Rewriting on cyclic structures ?
We present a categorical formulation of the rewriting of possibly cyclic term graphs, and the proof that this presentation is equivalent to the well-accepted operational deenition proposed in 3]|but for the case of circular redexes, for which we propose (and justify formally) a diierent treatment. The categorical framework, based on suitable 2-categories, allows to model also automatic garbage ...
متن کاملRewriting on cyclic structures: Equivalence between the operational and the categorical description
We present a categorical formulation of the rewriting of possibly cyclic term graphs, based on a variation of algebraic 2-theories. We show that this presentation is equivalent to the well-accepted operational deenition proposed by Barendregt et alii|but for the case of circular redexes, for which we propose (and justify formally) a diierent treatment. The categorical framework allows us to mod...
متن کاملDactl Rewriting Is Categorical
The graph-manipulating core of the general term graph rewriting language DACTL, namely contraction building and redirection, is reexamined from a categorical viewpoint. The essentials of this rather complex two-phase operational semantics is recast as a Grothendieck opfibration of a category of graph rewrites over a base of rewrite rules. This generalises previous attempts to categorise contrac...
متن کاملAn inductive view of graph transformation
The dynamic behavior of rule-based systems (like term rewriting systems 24], process algebras 27], and so on) can be traditionally determined in two orthogonal ways. Either operationally, in the sense that a way of embedding a rule into a state is devised, stating explicitly how the result is built: This is the role played by (the application of) a substitution in term rewriting. Or inductively...
متن کاملCPO Models for Infinite Term Rewriting
Innnite terms in universal algebras are a well-known topic since the seminal work of the ADJ group 1]. The recent interest in the eld of term rewriting (tr) for innnite terms is due to the use of term graph rewriting to implement tr, where terms are represented by graphs: so, a cyclic graph is a nitary description of a possibly innnite term. In this paper we introduce innnite rewriting logic, w...
متن کامل